package com.example.online.music.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 阿里云对象存储服务接口
 *
 * @author yaojianfeng
 */
public interface ObjectStoreService {

    /**
     * 文件下载接口
     * @param objectUrl 下载源的url
     * @param targetFilePath 存储目标路径
     */
    public void downloadFile(String objectUrl, String targetFilePath);

    public void deleteFile(String objectUrl);

    public String uploadFile(String dirName, String objectName, MultipartFile file) throws IOException;


}
